package day12;

import java.io.File;

public class test2 {
    public static void main(String[] args) {
        File f=new File("study\\src\\fileModule");
        deleteDir(f);
    }

    private static void deleteDir(File f) {
        File[] files = f.listFiles();
        for (File file : files) {
            if (file.isFile()){
                file.delete();
            }else {
                deleteDir(file);
            }
        }
        f.delete();
    }
}
